﻿@using DAL
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - Blog Project MVC</title>
    <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/layout.css" rel="stylesheet" />
    <script src="~/Scripts/modernizr-2.6.2.js"></script>
</head>
<body>
    <div class="navbar navbar-inverse navbar-static-top ">
        <div class="container">
            <div class="navbar-header">
            </div>

            <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
                <ul class="nav navbar-nav">
                    <li>
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="icon-bar">test1</span>
                                <span class="icon-bar">test2</span>
                                <span class="icon-bar">test3</span>
                            </button>
                            @Html.ActionLink("Home", "Index", "Home", null, new { @class = "navbar-brand" })
                        </div>
                    </li>
                    <li>
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
                            @Html.ActionLink("Blog", "Index", "Blog", new { id = "mvc_blog" }, new { @class = "navbar-brand" })
                        </div>
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
                            @Html.ActionLink("Create Post", "CreatePost", "Blog", null, new { @class = "navbar-brand" })
                        </div>
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
                            @Html.ActionLink("Profile", "EditUser", "Blog", new{id=3}, new { @class = "navbar-brand" }) 
                        </div>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        @if (Session["Login"] != null)
                        {
                            <div class="navbar-header">
                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
                                @Html.ActionLink("Log Out", "LogOut", "Login", new { controller = "Login", action = "Index" }, new { @class = "navbar-brand" })
                            </div>
                        }
                        else
                        {
                            <div class="navbar-header">
                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
                                @Html.ActionLink("Login", "Login", "Login", new { controller = "Login", action = "Index" }, new { @class = "navbar-brand" })
                            </div>
                        }

                    </li>
                    <li>
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
                            @Html.ActionLink("Register", "Index", "Register", null, new { @class = "navbar-brand" })
                        </div>
                    </li>
                </ul>
            </nav>


            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav"></ul>
            </div>
        </div>
    </div>

    <div class="container body-content">
        @RenderBody()
        @*<hr />*@
        <footer>
            <p>&copy; @DateTime.Now.Year - Blog Project MVC Course ECUtbildning</p>
        </footer>
    </div>

    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
</body>
</html>